]> dgit.raspbian.org Git - gnome-shell.git/commit
popupMenu: Only activate items that still have the pointer
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 19 Apr 2023 10:08:53 +0000 (12:08 +0200)
committerMarge Bot <marge-bot@gnome.org>
Thu, 20 Apr 2023 12:15:45 +0000 (12:15 +0000)
commit728a94dead7e12e35a0cfe47f63e14c763df0a56
tree663cad3dc21588f847696e6f1cb2e428d8dc14bc
parentec37f2158d13453f79e083161c265b699cef7689
popupMenu: Only activate items that still have the pointer

After the introduction of implicit grabs in Clutter, a release
event will now always be delivered to the actor that received
the corresponding press event.

This results in surprising behavior when moving the pointer
while pressed, as a button release will always activate the
original item, even when the pointer moved to a different item
or outside the menu altogether.

Address this by checking the hover state (that is, whether
the item contains the pointer actor) before activating it.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6606

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2740>
js/ui/popupMenu.js